<a href="#" name="functions"></a>
<div class="box box-panel">
<h2>任务相关功能点明细</h2>
<div id="functions" class="box-body">
    <div class="box-bottom">
    {{if can_modify(object, task_type):}}
    <a class="btn btn-green" href="/tfunctions/{{=obj_id}}/edit">任务功能点编辑</a>
    {{pass}}
    </div>
</div>
<script type="text/javascript">
$(function(){
    $.ajax({
        type: "POST",
        url: "/tfunctions/{{=obj_id}}",
        success: function(data){
            $('#functions').prepend(data.table);
            $('#functions_table').datagrid({height:Math.min(22+23*(data.total+1), 300)});
        }
    });
});
</script>
</div>
